Preview - Modeling Ecosystems Computationally

Analyzing the code behind the blocks


Now we will look at the computer code produced from your blocks.

  1. Scroll down and click on the triangle next to "NetLogo Code" 
  2. Set up the blocks that you used before to have the wolf move around.
  3. Look at the code that is generated when you recompile.
  4. Answer the questions below.


Questions

Please answer the questions below.

Look through the text-based code in the NetLogo code part. What is the copyright year?


Examine the text-based code carefully. What is the size of a wolf?

1
2
3
4
5
6
7
8
9
10

Can you find in the code the maximum number of moose that will be allowed in the model?

1
10
100
1000
10000
100000
1000000

Challenge: According to the code, what will happen "if" there are more than the maximum number of moose?


Notes

These notes will appear on every page in this lesson so feel free to put anything here you'd like to keep track of.